package cn.wolfcode.wolfcodemall.service.impl;

import cn.wolfcode.wolfcodemall.domain.Property;
import cn.wolfcode.wolfcodemall.mapper.PropertyMapper;
import cn.wolfcode.wolfcodemall.service.PropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PropertyServiceImpl implements PropertyService {
    @Autowired
    private PropertyMapper propertyMapper;
    public List<Property> findByCategoryId(Integer categoryId) {
        return propertyMapper.selectByCategoryId(categoryId);
    }
}
